package com.lyc.pojo;

public class Cart {
    private int scid;//购物车编号
    private int gid; //商品编号
    private int uid; //用户编号
    private int num; //商品数量
    private float price; //商品价格
    private Goods goods;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }



    public Cart() {
    }

    public Cart(int scid, int gid, int uid, int num, float price, Goods goods) {
        this.scid = scid;
        this.gid = gid;
        this.uid = uid;
        this.num = num;
        this.price = price;
        this.goods = goods;
    }

    public int getScid() {
        return scid;
    }

    public void setScid(int scid) {
        this.scid = scid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "scid=" + scid +
                ", gid=" + gid +
                ", uid=" + uid +
                ", num=" + num +
                ", price=" + price +
                ", goods=" + goods +
                '}';
    }
}
